<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        /*       3.2 筛选出 成绩 大于60 的已经及格的成绩名单（必做）
                       [56,45,80,67,89,100]
              */
        // let arr =  [56,45,80,67,89,100];
        let score_data = {
            "王一": 56,
            "王二": 45,
            "王三": 80,
            "王四": 60,
            "王五": 89,
            "王六": 100

        }
        let data = {}
            // 遍历对象
        for (let key in score_data) {
            if (score_data[key] > 60) {
                // data.key = key;
                data[key] = score_data[key];
            }
            // console.log(key, score_data[key]);
        }
        console.log(data);
    </script>
</body>

</html>